<template>
	<view class="pay-confirm-container">
		<uni-popup mask-background-color="rgba(0,0,0,0.4)" ref="popup" type="bottom">
			<view class="main-container ">
				<view class="slogan flex align-center">
					<uni-icons type="heart-filled" size="24" color="#ff0000"></uni-icons>
					<text>原创不易，支持作者</text>
					<uni-icons type="heart-filled" size="24" color="#ff0000"></uni-icons>
				</view>
				<view class="content-char">
					充值购买后可继续观看《致命电影》
				</view>
				<view class="flex align-center justify-between">
					<view class="content-char">
						第14集/共19集
					</view>
					<view class="content-char">
						本集价格:<text>66</text>K币
					</view>
				</view>
				<view class="flex align-center justify-between">
					<view class="flex align-center">
						<view class="pay-channel">
							<image src="../../static/logo.png" mode="aspectFill"></image>
							<text>微信支付</text>
						</view>
						<view class="pay-channel">
							<image src="../../static/logo.png" mode="aspectFill"></image>
							<text>支付宝</text>
						</view>
					</view>
					<view class="content-char">
						账户余额:<text>0</text>K币
					</view>
				</view>

				<view class="grid-container">
					<view @click="close" class="grid-item flex align-center justify-center" v-for="item in 8" :key="item">
						<view class="">
							<view class="amount">
								19.9<text>元</text>
							</view>
							<view class="sub-amount">
								(多送<text>5</text>元)
							</view>
							<view class="coin">
								1990+550K币
							</view>
							<view v-if="item==1" class="fire">
								<uni-icons type="fire-filled" color="#ff0000" size="24"></uni-icons>
							</view>
						</view>
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name: "lastView",
		props: {},
		data() {
			return {
				show: false
			}
		},
		created() {

		},
		methods: {
			open() {
				this.$refs.popup.open()
			},
			close() {
				this.$refs.popup.close()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pay-confirm-container {
		.main-container {
			background: #ffffff;
			width: 750rpx;
			border-radius: 32rpx 32rpx 0 0;
			box-sizing: border-box;
			padding: 24rpx;

			.slogan {
				font-size: 32rpx;
				font-weight: bold;
				color: #333333;
			}

			.content-char {
				font-size: 28rpx;
				color: #666666;
				margin-top: 10rpx;

				text {
					color: #f69316;
				}
			}

			.pay-channel {
				margin-right: 20rpx;
				margin-top: 10rpx;

				image {
					width: 36rpx;
					height: 36rpx;
					border-radius: 50%;
					margin-right: 10rpx;
				}

				text {
					font-size: 28rpx;
					font-weight: bold;
					color: #333333;
				}
			}
			
			.grid-container{
				margin-top: 20rpx;
				display: grid;
				grid-template-columns: 1fr 1fr;
				grid-row-gap: 24rpx;
				grid-column-gap: 78rpx;
				
				.grid-item{
					text-align: center;
					border-radius: 16rpx;
					height: 180rpx;
					background: #efefef;
					position: relative;
					
					.amount{
						font-size: 36rpx;
						font-weight: bold;
						color: #333333;
						
						text{
							font-size: 24rpx;
						}
					}
					
					.sub-amount{
						font-size: 28rpx;
						color: #666666;
						margin-top: 10rpx;
						font-weight: bold;
						text{
							color: #ff0000;
						}
					}
					
					.coin{
						font-size: 28rpx;
						color: #666666;
						margin-top: 10rpx;
					}
					
					.fire{
						position: absolute;
						top: -20rpx;
						right: -20rpx;
					}
				}
			}
		}
	}
</style>